# Copyright 2006 BreakMyGentoo.org
# Distributed under the terms of the GNU General Public License v2


inherit gnome2 eutils autotools

DESCRIPTION="Tools aimed to make easy the administration of UNIX systems"
HOMEPAGE="http://www.gnome.org/projects/gst/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64 ~ppc ~x86"
IUSE="nfs samba"

RDEPEND="net-misc/openssh
	userland_GNU? ( sys-apps/shadow )
	>=x11-libs/gtk+-2.10
	>=gnome-base/libgnomeui-2.15
	>=gnome-base/libglade-2.6
	>=gnome-base/gconf-2.2
	>=dev-libs/libxml2-2.4.12
	>=gnome-base/nautilus-2.15
	>=app-admin/system-tools-backends-1.9.2
	nfs? ( net-fs/nfs-utils )
	samba? ( >=net-fs/samba-3 )
	>=dev-libs/liboobs-0.2"

DEPEND="${RDEPEND}
	app-text/scrollkeeper
	dev-util/pkgconfig
	>=dev-util/intltool-0.35"

DOCS="AUTHORS BUGS ChangeLog HACKING NEWS README TODO"

pkg_setup() {
	G2CONF="${G2CONF} \
		--enable-boot \
		--enable-services \
		--enable-network \
		--enable-time \
		--enable-users \
		--enable-disks"

	if ! use nfs && ! use samba; then
		G2CONF="${G2CONF} --disable-shares"
	fi
}
